package com.eventapp.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="events_private")
@Access(AccessType.FIELD)
@PrimaryKeyJoinColumn(name="id")
public class EventPrivate extends Event implements Serializable
{
   /** Default value included to remove warning. Remove or modify at will. **/
   private static final long serialVersionUID = 1L;


   @OneToMany
   @JoinColumn(name = "event_id") 
   private List<Invitation> invitations;
   
   @OneToMany(cascade=CascadeType.ALL)
   @JoinColumn(name = "event_id") 
   private List<Message> messages;
   
   

@Override
public boolean equals(Object o) {
	// TODO Auto-generated method stub
	return false;
}


public List<Invitation> getInvitations() {
	return invitations;
}


public List<Message> getMessages() {
	return messages;
}



@Override
public int hashCode() {
	// TODO Auto-generated method stub
	return 0;
}



public void setInvitations(List<Invitation> invitations) {
	this.invitations = invitations;
}

public void setMessages(List<Message> messages) {
	this.messages = messages;
}


@Override
public String toString() {
	// TODO Auto-generated method stub
	return null;
}

   

   
   
   
   
}